<volist name="consult_list" id="vl">
    <div class="item">
        <div class="user">
            <span class="u-name">网　　友：<a ucard="{$vl.uid}">{$vl.user_nickname}</a></span>
            <span class="date-ask">{$vl.create_time|friendlyDate}</span>
            <if condition="check_auth('Addons/Consult/Consult/delete',$vl['goods_uid'])">
                <div class="pull-right" style="margin-left: 10px;"><a data-role="consult_delete" data-id="{$vl.id}" style="color: #C7C7C7;">删除</a></div>
            </if>
            <if condition="check_auth('Addons/Consult/Consult/answer',$vl['goods_uid'])">
                <if condition="$vl['answer'] neq ''">
                    <div class="pull-right"><a data-role="consult_answer" data-id="{$vl.id}" style="color: #C7C7C7;">编辑回复</a></div>
                    <else/>
                    <div class="pull-right"><a data-role="consult_answer" data-id="{$vl.id}" style="color: #4F8AD0;">回复</a></div>
                </if>
            </if>
        </div>
        <dl class="ask">
            <dt><b></b>咨询内容：</dt>
            <dd>{$vl.content}</dd>
        </dl>
        <dl class="answer" style="color: #6A9CD7;">
            <dt>客服回复：</dt>
            <dd>
                <if condition="$vl['answer'] neq ''">
                    <div class="pull-right" style="color: #9C9A9C;">{$vl.update_time|friendlyDate}</div>
                    <div class="content" style="margin-right: 150px;">{$vl.answer}</div>
                    <else/>
                    <div class="content" style="margin-right: 150px;">还未回复，请耐心等待</div>
                </if>
            </dd>
        </dl>
    </div>
</volist>
<script>
    $(function(){
        consult_function.bind_answer();
        consult_function.bind_delete();
    });
</script>